package cn.com.w.dao.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;
/**
 * <p>
 * 权限表
 * </p>
 *
 * @author wangJK
 * @since 2025-04-25
 */
@Getter
@Setter
@ToString
@TableName("sys_permission")
@AllArgsConstructor
@NoArgsConstructor
@Builder
//@ApiModel(value = "SysPermission对象", description = "权限表")
public class SysPermission implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
//    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 父id
     */
//    @ApiModelProperty("父id")
    @TableField("parent_id")
    private Long parentId;

    /**
     * 菜单名称
     */
//    @ApiModelProperty("菜单名称")
    @TableField("permission_name")
    private String permissionName;

    /**
     * 菜单地址
     */
//    @ApiModelProperty("菜单地址")
    @TableField("permission_url")
    private String permissionUrl;

    public static final String ID = "id";

    public static final String PARENT_ID = "parent_id";

    public static final String PERMISSION_NAME = "permission_name";

    public static final String PERMISSION_URL = "permission_url";
}
